function tmpExpected = handleExpect(expected,nSimPoint)

% time value mil sil lsb
time = expected(:,1);
value = expected(:,2);
mil = expected(:,3);
sil = expected(:,4);
lsb = expected(:,5);

%
% expceted   array
% time value mil sil lsb
% tmpExpected = {''};
tmpExpected = cell(nSimPoint+1,2);
len = 1;
for iValue = 1 : length(time) - 1
% 	preLen = length(tmpExpected);
% 	if preLen ~= 1 
% 		preLen = preLen + 1;
% 	end
% % 	tmpExpected = zeros(time(iValue+1)*100,5);
% 	len = time(iValue+1)*100;
% 
% 	tmpExpected(preLen:len,1) = num2cell(1:time(iValue+1)*100)';
% 	tmpExpected(preLen:len,2) = {value(iValue,1)};
% 	tmpExpected(preLen:len,3) = {mil(iValue,1)};
% 	tmpExpected(preLen:len,4) = {sil(iValue,1)};
% 	tmpExpected(preLen:len,5) = {lsb(iValue,1)};
	preLen = time(iValue)*100+1;
	len = time(iValue+1)*100+1;
% 	tmpExpected(preLen:len,1) = num2cell(1:time(iValue+1)*100)';
	tmpExpected(preLen:len,2) = {value(iValue,1)};
	tmpExpected(preLen:len,3) = {mil(iValue,1)};
	tmpExpected(preLen:len,4) = {sil(iValue,1)};
	tmpExpected(preLen:len,5) = {lsb(iValue,1)};

end
	tmpExpected(len:end,2) = {value(end,1)};
	tmpExpected(len:end,3) = {mil(end,1)};
	tmpExpected(len:end,4) = {sil(end,1)};
	tmpExpected(len:end,5) = {lsb(end,1)};
	
% m = size(tmpExpected,1);
% timestamp = (1:m)';
timestamp = (1:nSimPoint+1)';
tmpExpected(:,1) = num2cell(timestamp);